﻿
using RBACProject.Domian.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBACProject.Application.Menu.Dto
{
    /// <summary>
    /// 菜单树Dto  =》   (菜单基本信息类 + 登录人，登录时间)
    /// </summary>
    public class TreeDto
    {
        /// <summary>
        /// 菜单Id
        /// </summary>
        public int MenuId { get; set; }

        /// <summary>
        /// 级联选择器选择的所有Id
        /// </summary>
        public string CascaderAllId { get; set; }

        /// <summary>
        /// 父级Id
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 子节点  
        /// </summary>
        public List<TreeDto> Children { get; set; }

        /// <summary>
        /// 菜单类型 (枚举)
        /// </summary>
        public MenuType MenuType { get; set; }

        /// <summary>
        ///菜单名称
        /// </summary>
        public string MenuName { get; set; }

        /// <summary>
        /// 菜单路由  (路由路径)
        /// </summary>
        public string MenuRoute { get; set; }

        /// <summary>
        /// 路由名称
        /// </summary>
        public string RouteName { get; set; }

        /// <summary>
        ///  菜单图标
        /// </summary>
        public string Icon { get; set; }

        /// <summary>
        /// 菜单接口(api接口)
        /// </summary>
        public string MenuApi { get; set; }

        /// <summary>
        /// 组件路径
        /// </summary>
        public string Component { get; set; }

        /// <summary>
        /// 重定向
        /// </summary>
        public string Redirect { get; set; }


        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateName { get; set; } = null;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; } = DateTime.Now;
    }
}
